﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    public class Cinema
    {
        [DataMember]
        private int id;
        [DataMember]
        private int seats;
        [DataMember]
        private string title;

        public Cinema()
        {
        }

        public Cinema(int id, int seats, string title)
        {
            ID = id;
            Seats = seats;
            Title = title;
        }

        [DataMember]
        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        [DataMember]
        public int ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

        [DataMember]
        public int Seats
        {
            get { return this.seats; }
            set { this.seats = value; }
        }
    }
}
